package com.itbaiwei.unitday01;

import static android.view.View.GONE;

import android.annotation.SuppressLint;
import android.content.Intent;
import android.nfc.Tag;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.util.Log;
import android.view.MotionEvent;
import android.view.View;
import android.widget.ImageView;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import androidx.viewpager.widget.ViewPager;

import com.facebook.shimmer.ShimmerFrameLayout;

import java.util.ArrayList;
import java.util.List;

/**
 * Class: MainActivity3
 * Description:
 * Author: haijun.xu
 * Date: 2025/5/13 10:30
 */
public class MainActivity3 extends AppCompatActivity {

    private static final String DELEGATE_TAG = "MainActivity3";

    @SuppressLint("MissingInflatedId")
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        System.out.println("进入界面MainActivity3");
        setContentView(R.layout.activity_main3);
        initView();
    }

    private void initView() {

        ViewPager viewPager = findViewById(R.id.viewpager);
        List<String> datas=new ArrayList<>();

        for (int i=0;i<4;i++){
            datas.add("第"+(i+1)+"个view");
        }

        List<String> datas_list=new ArrayList<>();

        for (int i=0;i<40;i++){
            datas_list.add("第"+(i+1)+"个view");
        }

        viewPager.setAdapter(new MyAdapter(this,datas,datas_list));

    }


}
